package com.zlkj.pro.modular.app.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zlkj.pro.modular.admin.model.vo.UserVO;
import com.zlkj.pro.modular.business.entity.CustomerEntity;
import com.zlkj.pro.modular.business.model.dto.CustomerDTO;
import com.zlkj.pro.modular.business.model.vo.CustomerVO;

import java.util.List;
import java.util.Map;

/**
 * @author liyang
 * @date 2024/4/6
 * @time 14:34
 */
public interface AppCustomerService extends IService<CustomerEntity> {

    List<CustomerVO> findList(CustomerDTO dto);

    List<UserVO> findSubordinateList(Long userId, String query);

    boolean delete(CustomerDTO dto);

    CustomerVO findDetail(CustomerDTO dto);

    boolean add(CustomerDTO dto);

    boolean edit(CustomerDTO dto);

    boolean addPro(CustomerDTO dto);

    boolean editPro(CustomerDTO dto);

    List<String> findClassifyList();

    List<Map<String, String>> findArea(String parentId);

    void fixAddress(String type);
}
